package com.ismarkendenis.dxkeyexchange;

import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

public class ShaSum 
{
	public byte[] shaSumKey(BigInteger gabp)
	{
		MessageDigest md = null;
		
		try 
		{
			md = MessageDigest.getInstance("SHA-256");
		} 
		catch (NoSuchAlgorithmException e) 
		{
			e.printStackTrace();
		}
		
		md.update(gabp.toString().getBytes());
		
		return md.digest();
	}
}